import _fetch from './request.js'
function getPhoneCode(data) {
   return _fetch({
        url: "/sendsms",
        method: "post",
        data
      })
}


function toRegister(data) {
    return _fetch({
        url:'/register',
        method:'post',
        data
    })
}

export {getPhoneCode,toRegister}




